package com.arsn.myf.business.mapper;

import com.arsn.myf.business.entity.Notice;
import com.arsn.myf.business.vo.NoticeVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 公告 mapper 映射层
 * @author zhongrj
 * @time 2022-11-28
 */
@Mapper
public interface NoticeMapper extends BaseMapper<Notice> {
    /**
     * 自定义公告分页数据
     * @param page
     * @param notice
     * @return
     */
    List<NoticeVO> selectPageNoticeList(@Param("page") Page<NoticeVO> page, @Param("notice") NoticeVO notice);
}
